package cn.wen.yinxiu.member.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.wen.yinxiu.common.entity.BaseEntity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 *
 * @ClassName: ChatRecordEntity
 * @Author 小飞
 * @Email coderwen22@163.com
 * @Date 2023-05-21 22:19:26
 * @Description: 聊天记录实体类
 */
@Data
@TableName("y_chat_record")
public class ChatRecordEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 自增ID
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 自己ID
	 */
	private Long userId;
	/**
	 * 好友ID
	 */
	private Long friendId;
	/**
	 * 消息内容
	 */
	private String message;
	/**
	 * 消息时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
	private Date msgTime;
	/**
	 * 0：好友聊天 1：群聊
	 */
	private Integer talkType;
	/**
	 * 
	 */
	private Integer msgType;
	/**
	 * 1：可用 0：禁用
	 */
	private Integer status;


}
